package com.ligongmusic.domain;

import android.os.Parcel;
import android.os.Parcelable;

public class MusicInfo implements Parcelable {
	private String fileName;
	private String fileLrc;
	private String fileUrl;
	private int priseNum;
	private int commentsNum;
	private int song_id;
	private int status;


	private String photo;

	public int getSong_id() {
		return song_id;
	}

	public void setSong_id(int song_id) {
		this.song_id = song_id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public static final Parcelable.Creator<MusicInfo> CREATOR = new Parcelable.Creator<MusicInfo>() {
		// 重写Creator
		@Override
		public MusicInfo[] newArray(int size) {
			// TODO Auto-generated method stub
			return null;
		}

		@Override
		public MusicInfo createFromParcel(Parcel source) {
			MusicInfo info = new MusicInfo();
			info.fileName = source.readString();
			info.fileLrc = source.readString();
			info.fileUrl = source.readString();
			info.priseNum = source.readInt();
			info.commentsNum = source.readInt();
			info.song_id = source.readInt();
			info.status = source.readInt();
			return info;
		}
	};

	public String getFileUrl() {
		return fileUrl;
	}

	public int getPriseNum() {
		return priseNum;
	}

	public MusicInfo(String fileName, String fileLrc, String fileUrl,
			int priseNum, int commentsNum, int song_id, int status) {
		super();
		this.fileName = fileName;
		this.fileLrc = fileLrc;
		this.fileUrl = fileUrl;
		this.priseNum = priseNum;
		this.commentsNum = commentsNum;
		this.song_id = song_id;
		this.status = status;
	}

	public void setPriseNum(int priseNum) {
		this.priseNum = priseNum;
	}

	public int getCommentsNum() {
		return commentsNum;
	}

	public void setCommentsNum(int commentsNum) {
		this.commentsNum = commentsNum;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public MusicInfo() {
		super();
	}

	public String getFileLrc() {
		return fileLrc;
	}

	public void setFileLrc(String fileLrc) {
		this.fileLrc = fileLrc;
	}

	@Override
	public String toString() {
		return "MusicInfo [fileName=" + fileName + ", fileUrl=" + fileUrl + "]";
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(fileName);
		dest.writeString(fileLrc);
		dest.writeString(fileUrl);
		dest.writeInt(priseNum);
		dest.writeInt(commentsNum);
		dest.writeInt(song_id);
		dest.writeInt(status);
	}
}
